package com.webSite.demo.cy.activemq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ActiveMQController {

	@Autowired
	private JmsMessagingTemplate jms;
	
	@RequestMapping("/send")
	public void send(String text) {
		jms.convertAndSend("fzh",text);
	}
}
